From 83877b3bcbbbdb1ee71de46e97d0730be14186b3 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Tue, 28 Feb 2006 12:02:50 -0700 Subject: [PATCH] [IA64] Found the lost memory This patch can work around virtual memmap/discontig memory issues, but memory gain may not be realized. Signed-off-by: Anthony Xu --- xen/arch/ia64/xen/xensetup.c | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/xen/arch/ia64/xen/xensetup.c b/xen/arch/ia64/xen/xensetup.c index 674c4ce518..8b6faeed26 100644 --- a/xen/arch/ia64/xen/xensetup.c +++ b/xen/arch/ia64/xen/xensetup.c @@ -155,6 +155,24 @@ struct ns16550_defaults ns16550_com2 = { .parity = 'n', .stop_bits = 1 }; +/* This is a wrapper function of init_domheap_pages, + * memory exceeds (max_page<vcpu[0]->cpu_affinity = cpumask_of_cpu(0); /* The stash space for the initial kernel image can now be freed up. */ - init_domheap_pages(ia64_boot_param->domain_start, - ia64_boot_param->domain_size); + /* init_domheap_pages_wrapper is temporary solution, please refer to the + * descriptor of this function */ + init_domheap_pages_wrapper(ia64_boot_param->domain_start, + ia64_boot_param->domain_start+ia64_boot_param->domain_size); /* throw away initrd area passed from elilo */ if (ia64_boot_param->initrd_size) { - init_domheap_pages(ia64_boot_param->initrd_start, - ia64_boot_param->initrd_size); + init_domheap_pages_wrapper(ia64_boot_param->initrd_start, + ia64_boot_param->initrd_start+ia64_boot_param->initrd_size); } if (!running_on_sim) // slow on ski and pages are pre-initialized to zero -- 2.30.2